package com.lz.springcloud.tools.common;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient("tools-service")
public interface ToolsServiceFegin {
	@GetMapping("tools/redis/get")
    public String get(@RequestParam("key") String key);
    
    @GetMapping("tools/redis/add")
    public boolean add(@RequestParam("key") String key,@RequestParam("value") String value);
    
    @GetMapping("tools/redis/del")
    public boolean del(@RequestParam("key") String key);
    
    @GetMapping("tools/redis/exp")
    public boolean exp(@RequestParam("key") String key,@RequestParam("time") Long time);
}
